<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/">
<html>
<head>
<title>An XML Example</title>
</head>
<body>

<table>
<xsl:apply-templates select="viewentries" />
</table> 
</body>
</html>
</xsl:template>

<!-- Top level template --> 
<xsl:template match="viewentries">

<!-- Loop through each document (viewentry) and apply create the rows for each one-->
<xsl:for-each select="viewentry">
<tr><td><br/></td></tr><tr>


<td width="525px">
<table width="525px">

<table width="525px">
<tr>

<td width="120px" onclick="javascript:clickd(this)">
Solution Team lead :</td>

 <td width="405px" ><div onclick="javascript:clickd(this)" style="cursor:hand;color:black;TEXT-DECORATION: underline">
<xsl:attribute name="id"><xsl:value-of select="position()" /></xsl:attribute>

 <xsl:value-of select="entrydata[@name='$32']" /></div>

</td>

</tr>
</table>
<table width="575px">
<tr>

<td width="275px">Location : <xsl:value-of select="entrydata[@name='cmbSite']" /></td>


<td width="250px">Customer : <xsl:value-of select="entrydata[@name='cmbCustomer']" /></td>
<!-- Commented
<td width="50px"><span class="lotusBtn lotusBtnAction lotusLeft"><a href="/global/collaboration/SavvySol.nsf/ExportFBSummary?openagent">Remove Adopt</a></span> </td>
<td width="50px"><span class="lotusBtn lotusBtnAction lotusLeft"><a href="javascript:removeAdopt()">Remove Adopt1</a></span> 
</td> -->

<td width = "50px">

<input type="button" >
<xsl:attribute name="class">lotusBtn</xsl:attribute>
<xsl:attribute name="value">Remove</xsl:attribute>
<xsl:attribute name="id"> <xsl:value-of select="entrydata[@name='$42']" /></xsl:attribute>

<xsl:attribute name="onclick">javascript:removeAdopt(this)</xsl:attribute>
</input>

</td>



<div style="display:none">
<xsl:attribute name="id">td<xsl:value-of select="position()" /></xsl:attribute>
<xsl:value-of select="entrydata[@name='$37']" />
</div>
</tr>
</table>

</table>



<table height="15px" width="525px">
<tr bgcolor="#A2A1A6" ><td>Process</td><td>Primary Benefit</td><td>Benefit Results</td><td>Days to Implement</td>
<td>Adopted Feedback</td><td>Date Implemented</td></tr>
<tr bgcolor="#EBF1D5">
<td width="75px"><xsl:value-of select="entrydata[@name='cmbProcessarea']" /> </td>
<td width="100px"><xsl:value-of select="entrydata[@name='$38']" /> </td>
<td width="75px"><xsl:value-of select="entrydata[@name='$26']" /> </td>
<td width="75px"><xsl:value-of select="entrydata[@name='taImpTime']" /> </td>
<td width="100px"><xsl:value-of select="entrydata[@name='$39']" /> </td>
<td width="100px"><xsl:value-of select="entrydata[@name='$34']" /> </td>
</tr>

</table>
<table width="525px">
<tr><td width="275px"> <b>Continuous Improvement Comments: </b></td> </tr>
<tr><td width="275px"><xsl:value-of select="entrydata[@name='$40']" /></td></tr>
</table>




<div style="background-color:#E7E7E9;display:none;height:60px;border:2px solid;border-color:#CCCCCC;top:-15px;width:520px">
<xsl:attribute name="id">b<xsl:value-of select="position()" /></xsl:attribute>

<xsl:value-of select="entrydata[@name='Comments']" />...
</div>

</td>
</tr>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>